import request from '@/utils/request'

// 查询题型列表
export function listTypes(query) {
  return request({
    url: '/system/types/list',
    method: 'get',
    params: query
  })
}

// 查询题型详细
export function getTypes(questionTypesId) {
  return request({
    url: '/system/types/' + questionTypesId,
    method: 'get'
  })
}

// 新增题型
export function addTypes(data) {
  return request({
    url: '/system/types',
    method: 'post',
    data: data
  })
}

// 修改题型
export function updateTypes(data) {
  return request({
    url: '/system/types',
    method: 'put',
    data: data
  })
}

// 删除题型
export function delTypes(questionTypesId) {
  return request({
    url: '/system/types/' + questionTypesId,
    method: 'delete'
  })
}

// 查询标签头列表
export function listHeader(query) {
  return request({
    url: '/system/header/list',
    method: 'get',
    params: query
  })
}

// 查询标签头详细
export function getHeader(tagHeaderId) {
  return request({
    url: '/system/header/' + tagHeaderId,
    method: 'get'
  })
}

// 新增标签头
export function addHeader(data) {
  return request({
    url: '/system/header',
    method: 'post',
    data: data
  })
}

// 修改标签头
export function updateHeader(data) {
  return request({
    url: '/system/header',
    method: 'put',
    data: data
  })
}

// 删除标签头
export function delHeader(tagHeaderId) {
  return request({
    url: '/system/header/' + tagHeaderId,
    method: 'delete'
  })
}


// 删除列表数据
export function delTable(errorTestPaperIds) {
  return request({
    url: '/system/studentAnalysis/paper/' + errorTestPaperIds,
    method: 'delete'
  })
}
